package com.cardone.platform.configuration.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import org.springframework.data.annotation.Transient;

import com.cardone.platform.configuration.po.Dictionary;

/**
 * 字典
 *
 * @author yaohaitao
 *
 */
@Getter
@Setter
@Accessors(chain = true)
public class DictionaryDto extends Dictionary {
	/**
	 * 字典
	 *
	 * @author yaohaitao
	 *
	 */
	public enum Attributes {
		/**
		 * 解释
		 */
		explain,
	}

	/**
	 * 版本号
	 */
	@Transient
	private static final long serialVersionUID = 524722433133149213L;

	/**
	 * 字典
	 *
	 * @return 字典
	 */
	public static DictionaryDto newDictionary() {
		return new DictionaryDto();
	}

	/**
	 * 类别代码
	 */
	@Transient
	private String typeCode;

	/**
	 * 类别名称
	 */
	@Transient
	private String typeName;
}